package com.nuoniu.sibanyun.service.erp.in.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.erp.in.InInventoryUnitGroup;
import com.nuoniu.sibanyun.entity.vo.InInventoryUnitGroupVo;
import com.nuoniu.sibanyun.mapper.erp.in.InInventoryUnitGroupMapper;
import com.nuoniu.sibanyun.service.erp.in.IInInventoryUnitGroupService;
import com.nuoniu.sibanyun.userThread.UserInfo;
import com.nuoniu.sibanyun.userThread.UserThreadLocal;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-11-23
 */
@Service
public class InInventoryUnitGroupServiceImpl extends ServiceImpl<InInventoryUnitGroupMapper, InInventoryUnitGroup> implements IInInventoryUnitGroupService {


    @Override
    public List<InInventoryUnitGroupVo> listInInventoryUnitGroupVo(Integer inInventoryId) {
        UserInfo userInfo = UserThreadLocal.get();
        List<InInventoryUnitGroupVo> inInventoryUnitGroupVos = baseMapper.listInInventoryUnitGroupVo(userInfo.getCompanyId(), inInventoryId);
        return inInventoryUnitGroupVos;
    }
}
